<include file="Inc/header" />
<script type="text/javascript">
    function submitFun(act)
    {
        form1.action.value = act;
        form1.submit();
    }
</script>
<div id="body-wrapper">
    <!-- Wrapper for the radial gradient background -->
    <div id="sidebar">
        <include file="Inc/left"/>
    </div>
    <!-- End #sidebar -->
    <div id="main-content">

        <!-- Page Head -->
        <h2>Welcome 来到首页</h2>


        <!-- End .shortcut-buttons-set -->
        <div class="clear"></div>
        <!-- End .clear -->
        <div class="content-box">
            <!-- Start Content Box -->
            <div class="content-box-header">
                <form name='form1' action="{:U('Admin/Stu/show_tj')}" method="get">
                    <ul class="content-box-tabs">
                        <li>关键字：<input class="ui-textbox search_box" name="kw" value="{$_POST['kw']}"
                                       placeholder="姓名/身份证/学籍号/家长电话"/></li>
                        <li><select name="grade">
                            <option value="0">请选择年级</option>
                            <volist name="sh_grade_array" id="class">
                                <option value="{$class['id']}"
                                <if condition="$class['id'] eq $_REQUEST['grade'] "> selected='selected'</if>
                                >{$class['name']}</option>
                            </volist>
                        </select></li>
                        <li><select name="class">
                            <option value="0">请选择班级</option>
                            <volist name="sh_class_array" id="class">
                                <option value="{$class['id']}"
                                <if condition="$class['id'] eq $_REQUEST['class'] "> selected='selected'</if>
                                >{$class['name']}</option>
                            </volist>
                        </select></li>
                        <li><select name="poor">
                            <option value="-1"
                            <if condition="$_REQUEST['poor'] eq '-1' "> selected='selected'</if>
                            >全部（含贫困户）</option>
                            <option value="1"
                            <if condition="$_REQUEST['poor'] eq 1 "> selected='selected'</if>
                            >是</option>
                            <option value="0"
                            <if condition="$_REQUEST['poor'] eq 0 "> selected='selected'</if>
                            >否</option>

                        </select></li>
                        <li><select name="term">
                            <option value="-1"
                            <if condition="$_REQUEST['term'] eq '-1' "> selected='selected'</if>
                            >请选择学期</option>

                            <volist name="term" id="row">
                                <option value="{$row}"
                                <if condition="$row eq $_REQUEST['term'] "> selected='selected'</if>
                                >{$row}</option>
                            </volist>



                        </select></li>
                        <li><input type="hidden" id='actioning' name="action" value="cha"/>
                            <button class="ui-button add_goods_type" rel="orange" type="button"
                                    onclick="submitFun('cha');">查询
                            </button>
                            <button class="ui-button add_goods_type" rel="orange" type="button"
                                    onclick="submitFun('excel');">导出数据
                            </button>
                            </td>
                        </li>
                    </ul>
                    <div class="clear"></div>

            </div>
            <!-- End .content-box-header -->
            <div class="content-box-content">
                <div class="tab-content default-tab" id="tab1">
                    {$str}

                    <table>
                        <thead>

                        <tr>
                            <!--th>
                                <input class="check-all" type="checkbox"/>
                            </th-->
                            <th>学期</th>
                            <th>年级</th>
                            <th>班级</th>
                            <th>男生</th>
                            <th>女生</th>
                            <th>总数</th>
                        </tr>
                        </thead>
                        <tbody>
                        <volist name="stus" id="user">
                            <tr>

                                <!--td>
                                    <input type="checkbox"/>
                                </--td-->
                                <td>{$user['term']}</td>
                                <td>{$user['gradename']}</td>
                                <td>{$user['classname']}</td>
                                <td>{$user['男']}</td>
                                <td>{$user['女']}</td>
                                <td>{$user['he']}</td>
                            </tr>
                        </volist>
<tr><td colspan="6" align="left">合计：{$page_total}</td></tr>
                        </tbody>
                    </table>
                </div>
                <!-- End #tab1 -->

            </div>
            <!-- End .content-box-content -->
        </div>

        <include file="Inc/footer"/>
    </div>